package savi.classes;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;

public class Datastore {
	private static PersistenceManagerFactory PMF = JDOHelper
			.getPersistenceManagerFactory("transactions-optional");

	/*
	 * public static void initialize() { if (PMF != null) { throw new
	 * IllegalStateException("initialize() already called"); } PMF =
	 * JDOHelper.getPersistenceManagerFactory("jdo.properties"); }
	 */
	public static PersistenceManager getPersistanceManager() {
		return PMF.getPersistenceManager();
	}

}
